
// see http://vuejs-templates.github.io/webpack for documentation.
let path = require('path')
let webpack = require('webpack')

const env = process.env.NODE_ENV       // development ?


module.exports = {
    baseUrl: '/',
    outputDir: 'dist',
    //开发环境
    devServer: {
        host: '0.0.0.0',
        port: 8080,
        https: false,
        hotOnly: false,
        disableHostCheck: true,
        proxy: {
            '/api/': {
                target: 'http://localhost:3000',
                changeOrigin: true,
                pathRewrite: {
                  '^/api/': '/api/'
                }
            }
        },
        before: app => {}
    }
}